Skip to content

fix: log unexpected GRPC server errors at INFO#692

Merged
anthony-swirldslabs merged 1 commit intomainfrom
691-grpcINFO
Nov 20, 2025
Merged

fix: log unexpected GRPC server errors at INFO#692
anthony-swirldslabs merged 1 commit intomainfrom
691-grpcINFO

Conversation

@anthony-swirldslabs
Copy link
Copy Markdown
Contributor

Description:
PbjProtocolHandler.java logs unexpected errors at ERROR level, but in most cases they are harmless for the server itself. ERROR logs trigger various alarms when analyzing logs. So we want to log these at INFO level instead.

Also, I'm ensuring that the error() is called even if sending trailers fails.

Related issue(s):

Fixes #691

Notes for reviewer:
All tests should pass.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Anthony Petrov <anthony@swirldslabs.com>
@github-actions
Copy link
Copy Markdown

JUnit Test Report

   78 files  ±0     78 suites  ±0   3m 46s ⏱️ -5s
1 350 tests ±0  1 346 ✅ ±0   4 💤 ±0  0 ❌ ±0 
7 227 runs  ±0  7 207 ✅ ±0  20 💤 ±0  0 ❌ ±0 

Results for commit 8dd306a. ± Comparison against base commit 7060326.

This pull request removes 2 and adds 1 tests. Note that renamed tests count towards both.
, 1
com.hedera.pbj.runtime.Utf8ToolsTest ‑ [4] 
com.hedera.pbj.runtime.Utf8ToolsTest ‑ [4] 
, 1

Copy link
Copy Markdown
Member

@jsync-swirlds jsync-swirlds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the rapid fix on this.

@github-actions
Copy link
Copy Markdown

Integration Test Report

    410 files  ±0      410 suites  ±0   16m 23s ⏱️ - 1m 14s
114 861 tests ±0  114 861 ✅ ±0  0 💤 ±0  0 ❌ ±0 
115 102 runs  ±0  115 102 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 8dd306a. ± Comparison against base commit 7060326.

This pull request removes 3 and adds 3 tests. Note that renamed tests count towards both.
com.hedera.pbj.integration.test.ParserNeverWrapsTest ‑ [1] com.hedera.pbj.integration.test.ParserNeverWrapsTest$$Lambda/0x00007f92d8bb8000@29500b4f
com.hedera.pbj.integration.test.ParserNeverWrapsTest ‑ [2] com.hedera.pbj.integration.test.ParserNeverWrapsTest$$Lambda/0x00007f92d8bb8230@2458b75b
com.hedera.pbj.integration.test.ParserNeverWrapsTest ‑ [3] com.hedera.pbj.integration.test.ParserNeverWrapsTest$$Lambda/0x00007f92d8bb8460@9916cf1
com.hedera.pbj.integration.test.ParserNeverWrapsTest ‑ [1] com.hedera.pbj.integration.test.ParserNeverWrapsTest$$Lambda/0x00007fb4e3bb5328@7564142a
com.hedera.pbj.integration.test.ParserNeverWrapsTest ‑ [2] com.hedera.pbj.integration.test.ParserNeverWrapsTest$$Lambda/0x00007fb4e3bb5558@23419319
com.hedera.pbj.integration.test.ParserNeverWrapsTest ‑ [3] com.hedera.pbj.integration.test.ParserNeverWrapsTest$$Lambda/0x00007fb4e3bb5788@4080079a

@anthony-swirldslabs anthony-swirldslabs merged commit 6c0c316 into main Nov 20, 2025
12 checks passed
@anthony-swirldslabs anthony-swirldslabs deleted the 691-grpcINFO branch November 20, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PBJ GRPC Server: log unexpected errors at INFO

3 participants